package com.ey12.utils;

public class Mailtask extends Thread{

	private String receiver;
	private String username;
	private int flag=0;
	
	public Mailtask(String receiver,String username,int flag){
		super();
		this.receiver=receiver;
		this.username=username;
		this.flag=flag;
	}
	
	public void run(){
		switch(flag)
		{
		case 1:{
			MailUtil mu=new MailUtil();
			mu.sendMail(receiver, username);
			break;
		}
		
		case 2:{
			MailUtil mu=new MailUtil();
			mu.sendPayPassword(receiver, username);
			break;
		}
		
		}
	
	
	
		
		
	}
	
	
	
}
